import request from '@/utils/request'

// 查询渠道关系列表
export function listBiChannelRelationShop(query) {
  return request({
    url: '/conf/BiChannelRelationShop/list',
    method: 'get',
    params: query
  })
}
export function synData(query) {
  return request({
    url: '/conf/BiChannelRelationShop/synData',
    method: 'get',
    params: query
  })
}
// 查询渠道关系详细
export function getBiChannelRelationShop(id) {
  return request({
    url: '/conf/BiChannelRelationShop/' + id,
    method: 'get'
  })
}

// 新增渠道关系
export function addBiChannelRelationShop(data) {
  return request({
    url: '/conf/BiChannelRelationShop',
    method: 'post',
    data: data
  })
}

// 修改渠道关系
export function updateBiChannelRelationShop(data) {
  return request({
    url: '/conf/BiChannelRelationShop',
    method: 'put',
    data: data
  })
}

// 删除渠道关系
export function delBiChannelRelationShop(id) {
  return request({
    url: '/conf/BiChannelRelationShop/' + id,
    method: 'delete'
  })
}
